home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / packer / zlib / zfclose.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-17  |  497 b   |  35 lines

  1. #include "zdef.h"
  2.  
  3. /*------------------------------*/
  4. /*    zfclose            */
  5. /*------------------------------*/
  6. #ifndef __STDC__
  7. void zfclose (z)
  8. ZFILE *z;
  9. #else
  10. void zfclose (ZFILE *z)
  11. #endif
  12. {
  13.     if (z == 0)
  14.             return;
  15.  
  16.     if (z->zeof)
  17.     {
  18.         if ((z->flags & ALLOCATED) != 0)
  19.         {
  20. #ifdef MSDOS
  21.             hfree (z->tab_suffixof);
  22.             hfree (z->tab_prefixof);
  23. #else
  24.             free (z->tab_suffixof);
  25.             free (z->tab_prefixof);
  26. #endif
  27.             z->flags &= (~ALLOCATED);
  28.         }
  29.     }
  30.     free (z);
  31. }
  32.  
  33.  
  34.  
  35.